package uqbar.comm.simpleProtocol;

public class SimpleInput {

	private final String type;
	private final byte[] content;

	public SimpleInput(final String type, final byte[] content) {
		this.type = type;
		this.content = content;
	}

	@Override
	public String toString() {
		return "Type: " + this.type + " Content: {" + this.getContentAsString() + "}";
	}

	public byte[] getContent() {
		return this.content;
	}

	public String getContentAsString() {
		return new String(this.content);
	}

	public String getType() {
		return this.type;
	}

}
